//订单状态常量, 对象大写,属性还是小写+驼峰命名
//这种写法不太好。还是全大写吧
//这里对应后台的字段,不要乱改
const ORDER = {
    orderStat: {
        unconfirmed: 0, //未确认
        confirmed: 1, //已确认
        canceled: 2, //已取消
        invalid: 3, //无效
        refund: 4, //退货
        divided: 5, //已分单
        evaluated: 6, //已评价
    },

    payStat: {
        notPay: 0, //未支付
        paying: 1, //支付中
        paid: 2 , //已支付
    },

    shippingStat: {
        notShipped: 0, //未发货
        shipped: 1, //已发货
        received: 2, //已收货
        stocking: 3, //备货中
        shipping: 5, // 发货中
    }
};

//订单列表查询常量
const ORDER_LIST = {
    PENDING: 'pending', //待付款
    SHIPPING: 'shipping', //待收货
    REFUND: 'refund', //待退款
    UNEVALUATED: 'unevaluated', //待评价
};

export {
    ORDER,
    ORDER_LIST,
}
